<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../head.jsp">
	<jsp:param value="学员缴费记录" name="title" />
</jsp:include>
</head>
<body>
	<div class="container">
		<div class="row">
			<div id="content" class="col-lg-12">
				<div class = "dao">		
					<a class="section" href = "manager">学员管理</a>
					<i class="right chevron icon divider"></i>
					<a class="section" href = "student">收款管理</a>
					<i class="right chevron icon divider"></i>
					<span class="active section">交易记录</span>							
				</div>
					<div class="row">
					<div class="col-md-12">
					<!-- BOX -->
					<div class="box border blue"> 
						<div class="box-title">
							<h4>所有记录</h4>
							<a href="student/form?sid=${order.orderId }" type = "button" style = "float:right;color:white"> 新增交易记录</a>
						</div>
						<div class="box-body center">
						<table id="datatable2" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">
							<thead >
								<tr style = "text-align: center">
									<th style="width: 200px">缴费人</th>
									<th style="width: 300px">收款人</th>
									<th style="width: 300px">应交总金额</th>
									<th style="width: 300px">本次缴费金额</th>
									<th style="width: 300px">已支付金额</th>
									<th style="width: 300px">未交金额</th>
									<th style="width: 300px">交易时间</th>
									<th style="width: 300px">交易操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${recordList}" var="record">
									<tr>
										<td>${record.orderCustName}</td>
										<td>${record.recordPayee}</a></td>
										<td>${record.recordTotalmoney}</td>
										<td>${record.recordNowpaid}</td>
										<td>${record.recordPaid}</td>
										<td>${record.recordUnpaid}</td>
										<td>${record.recordPaidtime}</td>
										<td style="width: 500px; color: black">
											&nbsp; <a class="but" 
											value="${record.recordId}">查看交易记录</a></td>
									</tr>
								</c:forEach>
								<c:if test="${empty recordList}">
									<tr>
										<td style="text-align: center;" colspan="8">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>